package data0501;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int number = sc.nextInt();
		int a[] = new int[1000];
		int i = 0;
		int sum = 0;
		int cc = 3;
		String string = null;
		if (sc.hasNextLine()) {
			string = sc.nextLine();
		}
		char[] cs = string.toCharArray();
		for (char o : cs) {
			System.out.println("-" + o + "-");
		}
		System.out.println("sum=" + sum);
		int k = sum / number;
		int count = i;
		while (getResult(a, count, k) < number) {
			k--;
		}
		if (k < 0) {
			k = 0;
		}
		System.out.println(k);
	}

	static int getResult(int a[], int count, int k) {
		int countIndex = 0;
		for (int i1 = 0; i1 < count; i1++) {
			countIndex += a[i1] / k;
		}
		return countIndex;
	}

}
